@import './common';
@import './head';
@import './foot';

.banner-box {
    margin-bottom: 50px;
}

.case-list-box {
    padding: 0 8%;
    box-sizing: border-box;

    .case-item {
        position: relative;
        margin-bottom: 30px;
        box-sizing: border-box;

        img {
            max-width: 378px;
            width: 100%;
            height: auto;
        }

        .case-content {
            padding: 0 15px;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            color: #fff;

            .case-text {
                width: 100%;
                height: 100%;
                background: linear-gradient(0deg, rgba(3, 0, 0, 0.59) 1%, rgba(255, 255, 255, 0) 100%);

                &:hover {
                    .case-right img {
                        margin-left: 15px;
                    }
                }

                .news-text {
                    width: 100%;
                    height: 50%;
                    padding-top: 27px;
                    padding-left: 28px;

                    .date-text {
                        font-size: 14px;
                        color: #fff;
                        padding: 7px;
                        background: map-get($map: $colors, $key: '799');
                    }
                }

                .case-desc {
                    height: 50%;
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-end;

                    .case-left {
                        flex: 1;
                        width: 100%;
                        padding-left: 20px;
                        padding-bottom: 20px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;

                        p {
                            &:last-child {
                                flex: 1;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                white-space: nowrap;
                            }
                        }
                    }

                    .case-title {
                        margin-bottom: 15px;
                    }
                }

                .case-right {
                    width: 50px;
                    height: 50px;
                    line-height: 50px;
                    background: map-get($map: $colors, $key: '799');
                    margin-left: 20px;

                    img {
                        width: 29px;
                        height: 8px;
                        margin-left: 10px;
                        transition: margin-left .3s;
                    }
                }
            }
        }
    }

    .page-box {
        // padding: 30px 0;
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 750px) {
    .banner-box {
        margin-bottom: 0;
    }

    .case-list-box {
        padding: 0.4rem !important;

        .case-item {
            width: 49%;
            margin-bottom: 2% !important;
            max-width: 49% !important;
            margin-right: 2%;
            padding: 0;

            &:nth-child(2n) {
                margin-right: 0;
            }

            img {
                max-width: 100%;
            }

            .case-content {
                padding: 0 !important;

                .case-text {
                    .news-text {
                        padding: 0.2267rem 0 0 0.2267rem;

                        .date-text {
                            font-size: 0.2667rem;
                            padding: 0.08rem;
                        }
                    }

                    .case-desc {
                        .case-left {
                            padding: 0 0 0.1867rem 0.24rem !important;

                            p {
                                &:last-child {
                                    font-size: 0.2667rem !important;
                                }
                            }
                        }

                        .case-title {
                            font-size: 0.3467rem !important;
                            margin-bottom: 0.1333rem !important;
                        }

                        .case-right {
                            width: 0.5867rem !important;
                            height: 0.5867rem !important;
                            margin-left: 0.2rem !important;
                            line-height: 0.5867rem !important;

                            img {
                                width: 0.3333rem !important;
                                height: 0.0933rem !important;
                                margin-left: 0.1333rem !important;
                                transition: margin-left .3s;
                            }
                        }
                    }
                }
            }
        }
    }


}